@extends('public.index.layout')
@section('header')

    <h1>
        卷列表
    </h1>
@endsection

@section('content')
    <div class="box box-default">
        <div class="box-header with-border">
            <section class="content-header clearfix">
                <ol class="breadcrumb">
                    <li><a href="{{url('/')}}">首页</a></li>
                    <li class="active">{{$novel->novelname}}</li>
                </ol>
            </section>
        </div>
        <div class="box-body">
            <div class="book-intro clearfix">

                <div class="pull-left col-md-2 mt20">
                    <img alt="{{$novel->novelname}}" src="{{asset('/upload/'.$novel->novelimg)}}">
                </div>
                <span class="pull-right mt20"><a rel="nofollow" id="scrolltobt" href="javascript:void(0)">直达底部</a></span>
                <div class="pull-left">
                    <h1>{{$novel->novelname}}</h1>
                    <p>作者：{{$novel->novelauthor}}</p>
                    <p>类型：{{$novel->tag}}</p>
                    <p>状态：@if ($novel->novelstate===0)
                            连载中
                        @else
                            已完结
                        @endif</p>
                    <p>最近更新：{{$novel->update_time}}</p>
                    <p>最新章节：<a href="http://www.luoxia.com/zisidejiyin/103647.htm" title="评论集萃" target="_blank">评论集萃</a>
                    </p>
                    <p>作品简介：</p>
                    <div class="describe-html">{{$novel->noveldes}}
                    </div>
                </div>
            </div>

            <h2 class="text-center clearfix" id="tithook">
                <span class="pattern-left"></span>
                <span class="tit">章节列表</span>
                <span class="pattern-right"></span>
            </h2>
            @if (count($vols)>0)
                @foreach ($vols as $volname =>$values)
                    @if (count($vols)>1)
                        <div class="title clearfix">
                            <h3 id="shenzhiyoushou" class="acin text-center"><a target="_blank" title="{{$volname}}"
                                                                    href="#">{{$volname}}</a>
                            </h3>
                        </div>
                    @endif


                            <div class="book-list clearfix">
                                <ul>
                                    @if (count($values)>0)
                                        @foreach ($values as $content)
                                    <li class="pull-left">
                                        <a target="_blank" title="{{$content->con_name}}"
                                           href="{{route('content',['id'=>$content->id])}}">{{$content->con_name}}</a>
                                    </li>
                                        @endforeach
                                    @else
                                        该分卷下暂无内容
                                    @endif
                                </ul>
                            </div>


                @endforeach
            @else
                该小说暂无内容
            @endif


        </div>
        <!-- /.box-body -->
    </div>
@endsection

@section('script')
    <script>

    </script>
@endsection